fix(backup): version calendar task and note exports - #5958
Draft
RaresKeY wants to merge 2 commits into
Draft
Conversation
RaresKeY
force-pushed
the
fix/backup-v2-calendar-task-note
branch
from
August 9, 2026 00:08
288605f to
bbc7c0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Version the mixed-scope Settings backup archive to include calendars, events, tasks, task runs, and notes while retaining import compatibility with version 1 archives. Memories, skills, preferences, calendars, tasks, and notes are selected for the current owner; imported version 2 calendar, task, and note records are stamped with that owner and colliding identifiers are remapped. Presets remain shared across users, while settings and feature flags remain instance-global. Imports also detach external or session-bound state, including webhook tokens, crew/character references, CalDAV remote identifiers, and note uploads. Event datetime normalization keeps timezone semantics consistent, and same-owner imports clear webhook tokens as well.
This change is intentionally stacked on the memory-vector lifecycle change in #5957 because both update backup routes. Review and merge that change first, then rebase this branch before merging.
Target branch
dev, notmain. All PRs land indev;mainis curated by the maintainer at each release. If your PR is onmainby accident, click "Edit" on this PR and change the base.Linked Issue
Fixes #5947
Part of #4377
Type of Change
Checklist
devdocker compose uporuvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.Automated backup and memory suites passed, but the Settings import/export flow has not yet been exercised in a live application against a large or migrated SQLite database.
How to Test
pytest -q tests/test_backup_v2_database_domains.py tests/test_memory_vector_lifecycle.py tests/test_embedding_lanes_memory.py tests/test_app_initializer_memory_vector_degraded.py; the refreshed stacked head reports 28 passing tests.Visual / UI changes — REQUIRED if you touched anything that renders
Anything that changes what the UI looks like — buttons, icons, padding, colors, fonts, spacing, layout, CSS, HTML, SVG, or any
static/js/module that draws to the DOM — needs all of the following. PRs that change rendering without these WILL be closed.N/A — the change extends existing backup behavior without changing rendered UI files.
--red,--fg,--bg,--card,--border, etc.) — do not introduce new color values, font sizes, or spacing units.static/index.html) or plain text.Fira Code) for primary UI text. Don't override.Screenshots / clips
N/A — no rendered UI files changed.